<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: 'app',
        created () {
            if (!localStorage.getItem('TOKEN')) {
                this.$router.push('/login');
            }
        }
    };

</script>

<style>
    .left {
        float: left;
    }
    .right {
        float: right;
    }
</style>